﻿/*CREATE TRIGGER [dbo].[Afianzadoras_DeletionTrigger] 
    ON [Afianzadoras] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Afianzadoras_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[AfianzadoraGuid] = [Afianzadoras_Tombstone].[AfianzadoraGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Afianzadoras_Tombstone] 
    ([AfianzadoraGuid], DeletionDate)
    SELECT [AfianzadoraGuid], GETUTCDATE()
    FROM deleted 
END*/